package com.jiukuaidao.zhulin.api;

import com.jiukuaidao.library.net.ApiBaseParamAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.util.NetUtil;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;

/**
 * Created by wangyijie on 16.8.3.
 */
public class ApiGetGoodsComments extends ApiBaseParamAbstract {

    public ApiGetGoodsComments(String goodsId, String pageIndex, MyRetroCallBack myRetroCallBack) {
        super(myRetroCallBack);
        mParams.put("goodsId",goodsId);
        mParams.put("pageIndex",pageIndex);
    }

    @Override
    public Call<RootResult> getCall() {
        return RetrofitUtil.getApiManager(mParams, NetUtil.getResHeaderListener()).getGoodsComments(mParams);
    }
}
